<?php
function qqyesno($qq){
$mysql_qqyesno = mysql_query("SELECT * FROM xige_qqlist WHERE qq='$qq'");
$qqyesno=mysql_fetch_array($mysql_qqyesno);
if ($qq==$qqyesno['qq']){
$qqyesno="是";
}else{
$qqyesno="否";
}
return $qqyesno;
}

function searchpage($qq){
$qqyesno=qqyesno($qq);
print <<<EOT
									<tr>
										<td>
											<img src="http://q2.qlogo.cn/headimg_dl?bs=qq&dst_uin=$qq&spec=100" alt="QQ:$qq" title="QQ:$qq">
										</td>
										<td>
											$qq
										</td>
										<td>
											<a href="http://wp.qq.com" target="_blank">
												<img src="http://wpa.qq.com/pa?p=2:$qq:2" title="这是您QQ状态,如果未启用请去官网开启">
											</a>
										</td>
										<td>
											$qqyesno
										</td>
										<td>
											<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=$qq&amp;site=qq&amp;menu=yes">发送消息</a>
										</td>
										<td>
											<a target="_blank" href="http://user.qzone.qq.com/$qq">浏览QQ空间</a>
										</td>
									</tr>
EOT;
}
?>